# https://itemapi.yhd.com/getPrices.do?callback=jQuery111304511778694584567_1551662072366&params.area=2_2817_51973_0&params.skuIds=3596823&_=1551662072375

import requests

if __name__ == "__main__":
    url = "https://itemapi.yhd.com/getPrices.do?params.area=2_2817_51973_0&params.skuIds=3596823"
    test_url = "http://www.baidu.com"
    headers = {
        # 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) '
        #               'Chrome/71.0.3578.98 Safari/537.36',
        'referer': 'https://item.yhd.com/3596823.html',
        # 'cookie': 'provinceId=2; cityId=2817; yhd_location=2_2817_51973_0;'
        #           ' __jdv=259140492|baidu|-|organic|not set|1551661045889;'
        #           ' cart_cookie_uuid=ffbeb156-b5f0-40b0-956f-146c54397580;'
        #           ' __jda=81617359.15516610458881077644823.1551661046.1551661046.1551661046.1;'
        #           ' __jdc=81617359; __jdb=81617359.6.15516610458881077644823|1.1551661046'
    }
    res = requests.get(url, headers=headers)
    print(res.text)
